//
//  SCOrderDetailFootView.m
//  shangcheng
//
//  Created by 张艳江 on 2019/6/5.
//  Copyright © 2019 张艳江. All rights reserved.
//

#import "SCOrderDetailFootView.h"

@implementation SCOrderDetailFootView

+ (instancetype)addOrderDetailFootView{
    return [[NSBundle mainBundle]loadNibNamed:@"SCOrderDetailFootView" owner:nil options:nil].lastObject;
}
- (void)setModel:(SCModel *)model{
    _model = model;
    if ([model.type intValue] == 1) {
        self.goodsPriceLab.text = [NSString stringWithFormat:@"%@福豆",model.sum];
    }else{
        self.goodsPriceLab.text = [NSString stringWithFormat:@"¥%@",model.sum];
    }
    self.orderNumLab.text = model.orderid;
    self.creatTimeLab.text = [MyTool getTimeFromTimesTamp:model.order_time];
    self.payTimeLab.text = [MyTool getTimeFromTimesTamp:model.pay_time];
}

@end
